#include "fxcc/core/graph/common/Frustum.h"
#include "fxcc/core/graph/common/Config.h"

using namespace fxcc::graph::common;

glm::mat4 fxcc::graph::common::Frustum::GetProjection() const
{

#ifdef FXCC_USE_LEFT_HAND
	return GetProjectionLH();
#else
	return GetProjectionRH();
#endif
}

glm::mat4 Frustum::GetProjectionLH() const
{
	return glm::perspectiveLH(glm::radians(fovy), aspect, nNear, nFar);
}

glm::mat4 Frustum::GetProjectionRH() const
{
	return glm::perspectiveRH(glm::radians(fovy), aspect, nNear, nFar);
}
